home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ham Radio 2000
/
Ham Radio 2000.iso
/
ham2000
/
packet
/
p_tapr
/
tnchst
/
mthost.doc
< prev
next >
Wrap
Text File
|
1992-03-16
|
3KB
|
77 lines
Superfast notes on MTHOST
1. MTHOST unfortunately choses the com port and its baud rate at COMPILE TIME!
The default I've set up is COM1 (where COM1-4 exist), 9600 baud. If
you wish to change these parms you'll need to patch MTDRIVER.ASM for
COMPORT and patch MTHOST.C for COMPORT.
1.5 (c) stuff
MTHDRIVER is based on AA4RE's COMBIOS.ASM drivers, as modified by
WA7MXZ, WA7MBL, W0RLI, and N2WX. (c) the respective authors.
The remaining software is (c) N2WX. Permission to copy and
use the software in non-commercial Amateur Radio applications
is hereby granted.
The specifications for QAFT, DLC, and BLP specifications are
hereby released into the public domain.
2. If MTHOST comes up and says "detected TNC not ready" it means the
driver doesn't see a valid hardware flow control signal from the TNC.
A full rs-232 cable (at least enuf to support flow control) is required.
Note that what you'll probably need to do is build an rs232 loopback that
ties pins 2&3 together and one that pulls the RTS input to the computer
line TRUE (unless you have a tnc or other device capable of echoing back
all 8 bits)
3. commands:
once MTHOST is up, you may use
F1: set mydlc address (addressing allows rs232 multiplexing;deflt=off=0)
set outgoing dlc address (defaults to 1)
F2: establishes a BLP link
F3: transmit data. the stupid scanf() function in here will only transmit
ONE WORD of data, but it can be a very long word. PLEASE NOTE
THERE ARE TWO PARAMETERS REQUIRED - THE channel# [SPACE] word
CHANNEL# SHOULD BE THE SAME CHANNEL # THAT MTHOST SIGNALLED
IT CONNECTED ON
F4: disconnect the BLP link
F5: send a test UI packet from MYCALL "A" to MYCALL "B"
F6: send a CSTREQ packet
(pressing any other function key brings up the help menu)
4. >>Getting on the command channel
To issue commands to the tnc (ex: change TXDELAY), using MTHOST
issue an F2 call to callsign "TNCCMD". TNCCMD causes MTHOST
to force a call on the tnc command channel 0x70. Thereafter use
F3 on channel 112 to issue commands.
5. All the garbage displayed
MTHOST was a terminal program. For my debug purposes I've
allowed the raw QAFT data to be printed on the screen and also provided
a somewhat functional decoding of each QAFT packet. Is doesn't look
good now, but the idea is to get some good programmers to replace MTHOST
with something useful...
(Note: turn off AFTFRAMETRACE in AFT.INC to get rid of frame traces...
but note no way to shut off rcvd aft frames when using MTHCODE as the main
driver)
6. Don't forgot to set AWLEN 8!
7. Rolling your own host program?
Please remember that you must implement QAFT level 1, at least on the
receive side. In this release, the TNC will always send a DLE and
offset the DC1/DC3 flow control characters. If you are using
transparent mode in the default configuration i.e., without software
flow control, note the TNC can always receive at level 0 and you will
not need to escape the host's DC1 and DC3 characters.